<?php /*a:2:{s:87:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\common\widget\input.html";i:1648694629;s:88:"F:\phpstudy\phpstudy1\phpstudy_pro\WWW\test\heco\bnb_dapp\view\common\widget\select.html";i:1648694629;}*/ ?>
<?php if(isset($wconfig['theme']) && $wconfig['theme'] == 'arctype_select'): ?>
<div class="form-group">
    <label class="col-sm-<?php echo $wconfig['title_col']; ?> control-label"><?php echo $wconfig['title']; ?></label>
    <div class="col-sm-<?php echo $wconfig['content_col']; ?>">
        <select class="form-control" id="select2_<?php echo $wconfig['name']; ?>" name="<?php echo $wconfig['name']; ?>" <?php echo $wconfig['disabled']; ?> style="width:100%;">
            <?php if(is_array($optionList) || $optionList instanceof \think\Collection || $optionList instanceof \think\Paginator): $i = 0; $__LIST__ = $optionList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <option value="<?php echo $vo['value']; ?>" <?php echo $vo['selected']; ?> <?php echo $vo['html']['disabled']; ?> ><?php echo $vo['html']['val']; ?></option>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
    </div>
    <div class="col-sm-<?php echo $wconfig['validate_col']; ?>">
        <span class="help-block"><?php echo $wconfig['validate']; ?></span>
    </div>
</div>
<?php else: ?>
<div class="form-group">
    <label class="col-sm-<?php echo $wconfig['title_col']; ?> control-label"><?php echo $wconfig['title']; ?></label>
    <div class="col-sm-<?php echo $wconfig['content_col']; ?>">
        <select class="form-control" id="select2_<?php echo $wconfig['name']; ?>" name="<?php echo $wconfig['name']; ?>" <?php echo $wconfig['multiple']; ?> <?php echo $wconfig['disabled']; ?> style="width:100%;">
            <?php if(is_array($optionList) || $optionList instanceof \think\Collection || $optionList instanceof \think\Paginator): $i = 0; $__LIST__ = $optionList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <option value="<?php echo $vo['value']; ?>" <?php echo $vo['selected']; ?> ><?php echo $vo['html']; ?></option>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
    </div>
    <div class="col-sm-<?php echo $wconfig['validate_col']; ?>">
        <span class="help-block"><?php echo $wconfig['validate']; ?></span>
    </div>
</div>
<?php endif; ?>
<script type="text/javascript">
$(function(){
    $('#select2_<?php echo $wconfig['name']; ?>').select2({language:"zh-CN"});    //select2初始化
})
</script>